package com.woniuxy.impl;



import com.woniuxy.Person;

import java.util.List;
import java.util.Map;
import java.util.Set;

public class Chinese implements Person {
    private int age;
    private String name;
    private American american;
    private List<Integer> list;
    private Map<String,String> map;
    private Set<String> set;
    private List<Map<String,String>> list_map;
    private List<American> americans;

    public Chinese() {
    }

    public Chinese(int age, String name, American american, List<Integer> list, Map<String, String> map, Set<String> set,
                   List<Map<String, String>> list_map, List<American> americans) {
        this.age = age;
        this.name = name;
        this.american = american;
        this.list = list;
        this.map = map;
        this.set = set;
        this.list_map = list_map;
        this.americans = americans;
    }

    @Override
    public String toString() {
        return "Chinese{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", american=" + american +
                ", list=" + list +
                ", map=" + map +
                ", set=" + set +
                ", list_map=" + list_map +
                ", americans=" + americans +
                '}';
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAmerican(American american) {
        this.american = american;
    }

    @Override
    public void run() {
        System.out.println("故宫");
    }
}
